package com.reform.service;

import com.reform.pojo.phase.BatchPhase;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reform.res.Result;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mortale
 * @since 2021-08-06
 */
public interface IBatchPhaseService extends IService<BatchPhase> {


    /**
     * 通过batchId、phaseId删除所有阶段检查信息
     * @param batchId
     * @param phaseId
     * @return
     */
    Result deleteBatchPhase(String batchId, String phaseId) throws SQLException;

    /**
     * 添加阶段检查信息
     * @param phaseId
     * @param batchIdInfo
     * @return
     */
    Result insertBatchPhase(String phaseId, String batchIdInfo) throws SQLException;

    /**
     * 批量删除阶段检查信息
     * @param phaseId
     * @param batchIdInfo
     * @return
     */
    Result deleteBatchPhases(String phaseId, String batchIdInfo) throws SQLException;

    /**
     *
     * @param batchIdList
     * @return
     */
    List<BatchPhase> getBatchPhaseByBatchIdList( List<String> batchIdList);
}
